import '@/utils/request'
import service from '@/utils/request'
// eslint-disable-next-line no-unused-vars
import qs from 'qs'
// eslint-disable-next-line no-unused-vars
const { httpPostForm, httpPost, httpGet } = service

//物资预算价

// 获取本机构及其以下机构(懒加载)
const getOrgName = params => {
    return httpGet({
        url: '/hr/org/getLazyChildrenOrg',
        params
    })
}
// 根据条件分页查询物资预算价
const getmaterialsBudgetPrice = params => {
    return httpPost({
        url: '/material/budgetPrice/listByEntity',
        params
    })
}
// 新增物资预算价
const AddMaterialsBudgetPrice = params => {
    return httpPost({
        url: '/material/budgetPrice/create',
        params
    })
}
// 修改物资预算价
const EditMaterialsBudgetPrice = params => {
    return httpPost({
        url: '/material/budgetPrice/update',
        params
    })
}
// 修改物资预算价记录
const EditMaterialsBudgetPriceList = params => {
    return httpPost({
        url: '/material/budgetPrice/updateList',
        params
    })
}
// 送市场价到总计划
const sendToMasterPlan = params => {
    return httpPost({
        url: '/material/budgetPrice/sendToMasterPlan',
        params
    })
}
export {
    getOrgName,
    getmaterialsBudgetPrice,
    AddMaterialsBudgetPrice,
    EditMaterialsBudgetPrice,
    EditMaterialsBudgetPriceList,
    sendToMasterPlan
}
